(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[234],{4064:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[index]",function(){return a(6411)}])},4916:(e,t,a)=>{"use strict";a.d(t,{V:()=>i,Z:()=>c});let r="/outros.png",n="/image-1.png",s="/image-2.png",o="/image-3.png",l="/image-4.png";function i(e){if(null!=e){if(e.includes("http")||e.includes("data:"))return e;switch(e){case"agencia-digital":return"/agencia-digital.png";case"beleza":return"/beleza.png";case"educacao":return"/educacao.png";case"fotografia":return"/fotografia.png";case"moda":return"/moda.png";case"negocios":return"/negocios.png";case"nutricao":return"/nutricao.png";case"reforma":return"/reforma.png";case"restaurante":return"/restaurante.png";case"saude":return"/saude.png";case"image001":return n;case"image002":return s;case"image003":return o;case"image004":return l;default:return r}}}function c(e){if(null!=e){if(e.includes("http")||e.includes("data:"))return e;switch(e){case"agencia-digital":return"/mobile/agencia-digital.png";case"beleza":return"/mobile/beleza.png";case"educacao":return"/mobile/educacao.png";case"fotografia":return"/mobile/fotografia.png";case"moda":return"/mobile/moda.png";case"negocios":return"/mobile/negocios.png";case"nutricao":return"/mobile/nutricao.png";case"reforma":return"/mobile/reforma.png";case"restaurante":return"/mobile/restaurante.png";case"saude":return"/mobile/saude.png";case"image001":return n;case"image002":return s;case"image003":return o;case"image004":return l;default:return r}}}},6411:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>C,default:()=>$});var r=a(7876),n=a(4232),s=a(9158),o=a(9577),l=a(7328),i=a.n(l),c=a(4587),x=a.n(c),p=a(9099),d=a(9370);let m=(0,a(7161).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var u=a(8847);let h=a.n(u)()(()=>Promise.all([a.e(361),a.e(805),a.e(656)]).then(a.bind(a,6656)),{loadableGenerated:{webpack:()=>[6656]},ssr:!1}),g=({address:e,isPro:t})=>{e||(e=null);let a=`${e?.postalCode}, ${e?.address}, ${e?.number?`${e.number},`:""}- ${e?.district}, ${e?.city} - ${e?.state}`;return(0,r.jsxs)("div",{className:"bg-white w-full max-w-[600px] p-4 rounded-[4px] shadow-[0_0_6px_#0003,inset_0_-2px_0_0_rgba(0,0,0,0.25)] mt-2 max-[992px]:w-[600px] max-[992px]:mb-[50px] max-[630px]:w-[344px] mb-2",children:[(0,r.jsx)("div",{className:"text-black font-bold text-[20px] leading-[100%] text-center ",children:"Endere\xe7o"}),(0,r.jsxs)("div",{className:"p-4",children:[e?.showMap&&t&&e.latitude&&e.longitude&&(0,r.jsxs)("div",{className:"pt-2",children:[" ",(0,r.jsx)(h,{position:[parseFloat(e.latitude),parseFloat(e.longitude)]})]}),(0,r.jsx)("div",{className:"flex items-start gap-1 text-[#202020] text-[16px] ",children:`${e?.address}, ${e?.number?`${e.number},`:""}${e?.complement||e?.complement!==""?`${e?.complement}`:""} - ${e?.district}, ${e?.city} - ${e?.state}, ${e?.postalCode}`}),(0,r.jsxs)("a",{href:`https://www.google.com/maps/search/?api=1&query=${a}`,target:"_blank",className:"mt-[8px] py-2 flex items-center justify-between gap-1 text-[#444] leading-[18.2px] transition-colors duration-300 ease-in-out hover:no-underline hover:bg-[#ececec] cursor-pointer ",rel:"noreferrer",children:[(0,r.jsxs)("span",{className:"flex items-center gap-4 text-[#444444]",children:[(0,r.jsx)(d.A,{color:"#000"}),"Abrir no maps"]}),(0,r.jsx)(m,{color:"#000"})]})]})]})},f=[{key:"monday",label:"Segunda-feira"},{key:"tuesday",label:"Ter\xe7a-feira"},{key:"wednesday",label:"Quarta-feira"},{key:"thursday",label:"Quinta-feira"},{key:"friday",label:"Sexta-feira"},{key:"saturday",label:"S\xe1bado"},{key:"sunday",label:"Domingo"}],b=({attendance:e})=>{e||(e=null);let t=e?function(e){let t=[],a=null;for(let r=0;r(0,r.jsxs)("li",{className:"flex justify-between mb-2 ",children:[(0,r.jsx)("span",{className:"font-bold text-[16px] leading-[100%]",children:1===e.days.length?e.days[0]:`${e.days[0].replace("-feira","")} a ${e.days[e.days.length-1].replace("-feira","")}`}),(0,r.jsx)("span",{className:"text-gray-600",children:e.value.replace(" - "," \xe0s ")})]},t))})]})};function w({products:e=[],onRemove:t,conecte:a}){let[s,o]=(0,n.useState)(!1),[l,i]=(0,n.useState)(!1),c=e=>new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(e),p=c(e.reduce((e,t)=>e+(t.price??0),0)),d=(0,n.useRef)(e.length);(0,n.useEffect)(()=>{0===d.current&&1===e.length&&o(!0),d.current=e.length},[e.length]);let m=async()=>{if(!l&&0!==e.length){i(!0);try{let t=await fetch("/api/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({products:e.map(e=>({id:e.id,quantity:1})),merchantId:a.merchant?.id||"",providerId:a.merchant?.providerId||"",redirectUrl:`https://conecte.online/${a.path}?success=true`,catalogId:a.catalogId})});if(!t.ok)throw Error("Erro ao gerar link de pagamento");let r=await t.json();window.location.href=r.link}catch(e){console.error("Erro ao finalizar compra:",e),i(!1)}}};return(0,r.jsxs)(r.Fragment,{children:[!s&&(0,r.jsxs)("button",{onClick:()=>o(!0),className:"fixed left-[24px] md:right-[24px] md:left-auto top-[71px] md:top-[70px] w-[125px] h-[35px] bg-white text-[#202020] text-[14px] font-normal border border-[#DCDCDC] rounded-[4px] px-4 py-2 flex items-center justify-center gap-3 z-50",children:[(0,r.jsx)(x(),{src:"/cart.svg",alt:"Carrinho",width:18,height:18}),"Carrinho",e?.length>0&&(0,r.jsx)("span",{className:"absolute -top-4 -right-3 w-[32px] h-[32px] bg-[#E6001F] text-white rounded-full flex items-center justify-center text-[14px] font-medium",children:e.length})]}),s&&(0,r.jsxs)("div",{className:`fixed inset-0 z-[1001] pointer-events-${s?"auto":"none"}`,children:[(0,r.jsx)("div",{className:`fixed inset-0 bg-black transition-opacity duration-700 ease-in-out ${s?"opacity-50":"opacity-0"} `,onClick:()=>!l&&o(!1)}),(0,r.jsxs)("div",{className:`fixed right-0 top-0 h-full w-full md:w-[90%] max-w-md bg-white shadow-lg transform transition-transform duration-700 ease-in-out z-50 flex flex-col ${s?"translate-x-0":"translate-x-full"} `,children:[(0,r.jsxs)("div",{className:"flex items-center border-b border-gray-200 px-6 py-5",children:[(0,r.jsx)("button",{onClick:()=>!l&&o(!1),className:"text-gray-400 hover:text-black text-2xl mr-5",disabled:l,children:(0,r.jsx)(x(),{src:"/closeCart.svg",alt:"Fechar",width:24,height:24})}),(0,r.jsx)("h2",{className:"text-black text-[24px] font-normal",children:"Carrinho"})]}),(0,r.jsx)("div",{className:"px-6 pt-4 pb-0",children:(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsx)(x(),{src:"/pags.png",alt:"Compra Segura",width:142,height:28})})}),(0,r.jsx)("div",{className:"p-6 overflow-y-auto flex-grow",style:{maxHeight:"calc(100vh - 320px)"},children:l?(0,r.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,r.jsx)(x(),{src:"/loading.svg",alt:"Carregando...",width:48,height:48})}):(0,r.jsx)("div",{className:"space-y-4",children:e.map(e=>{let a=e.medias?.[0]?.url?.replace("http://","https://")||"/productImageDefault.png";return(0,r.jsxs)("div",{className:"flex gap-4 cursor-pointer",children:[(0,r.jsx)(x(),{src:a,alt:"Produto",width:83,height:83,className:"w-[83px] h-[83px] object-cover rounded-[5px] border border-[#ccc]"}),(0,r.jsxs)("div",{className:"flex flex-col justify-between text-left w-full",children:[(0,r.jsx)("p",{className:"text-[16px] leading-6 line-clamp-2 overflow-hidden text-ellipsis",children:e.name}),(0,r.jsxs)("div",{className:"flex items-center justify-between mt-1",children:[(0,r.jsx)("p",{className:"text-[16px] leading-6 font-bold",children:c(e.price??0)}),(0,r.jsx)("button",{onClick:()=>t?.(e.id),className:"cursor-pointer",disabled:l,children:(0,r.jsx)(x(),{src:"/trash.svg",alt:"Remover produto",width:36,height:36})})]})]})]},e.id)})})}),(0,r.jsxs)("div",{className:"mt-auto",children:[(0,r.jsxs)("div",{className:"flex items-center justify-start border-t border-b border-gray-200 pt-3 pb-3 px-6",children:[(0,r.jsx)("p",{className:"text-[#444444] text-[16px] font-normal mr-3",children:"Pagamento intermediado pela"}),(0,r.jsx)(x(),{src:"/pagseguro.svg",alt:"PagSeguro",width:93,height:24})]}),(0,r.jsxs)("div",{className:"mt-auto px-6 py-5 space-y-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between pb-4",children:[(0,r.jsx)("p",{className:"text-black font-bold text-[20px]",children:"Total:"}),(0,r.jsx)("p",{className:"text-black font-bold text-[24px]",children:p})]}),(0,r.jsx)("button",{onClick:m,disabled:0===e.length||l,className:`w-full text-white text-[20px] font-normal py-3 rounded-[4px] transition ${0===e.length||l?"bg-gray-400 cursor-not-allowed":"bg-[#202020] hover:opacity-90"} `,children:l?"Processando...":"Finalizar Compra"}),(0,r.jsx)("button",{onClick:()=>!l&&o(!1),disabled:l,className:"w-full bg-[#ECECEC] text-[#202020] text-[20px] font-normal py-3 rounded-[4px] shadow-[inset_0px_-2px_0px_0px_rgba(0,0,0,0.25)] disabled:opacity-50",children:"Continuar comprando"})]})]})]})]})]})}var j=a(5002);function y({isOpen:e,onClose:t,children:a}){return e?(0,r.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,r.jsx)("div",{className:"fixed inset-0 bg-[#6D6D6D] opacity-[75%]",onClick:t}),(0,r.jsxs)("div",{className:"relative w-[840px] max-[860px]:w-[600px] max-[610px]:w-[340px] bg-white rounded-[4px] shadow-lg p-10 animate-fadeIn",children:[(0,r.jsx)("button",{onClick:t,className:"absolute transition-colors duration-300 ease-in-out p-2 top-3 right-3 text-[#5D69D3] hover:text-[#363f8d]",children:(0,r.jsx)(j.A,{size:24})}),a]})]}):null}function v({multiLinks:e,isCatalag:t}){if(!e)return null;let a=JSON.parse(e);return(0,r.jsx)("div",{className:`z-[2] flex flex-col ${!t?"max-[960px]:mb-[50px]":""}`,children:a.map((e,t)=>{let a=e.url.trim().replace(/^https?:\/\/(tel:)/,"$1"),n=a.startsWith("tel:"),s=/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(a)?a:`https://${a}`;return(0,r.jsx)("a",{href:s,...!n&&{target:"_blank",rel:"noopener noreferrer"},className:` relative inline-flex justify-center items-center cursor-pointer box-border text-center border-0 rounded-[4px] bg-white align-middle touch-manipulation leading-6 shadow-[0_0_6px_rgba(0,0,0,0.2),_inset_0_-2px_0_0_rgba(0,0,0,0.25)] text-[1.25rem] px-6 py-3 text-[#0070ab] no-underline min-h-[48px] w-[600px] mt-2 hover:bg-[#f2f2f2] active:bg-[#cccccc] max-[630px]:max-w-[344px] ${n?"block sm:hidden":"block"} `,children:e.title},t)})})}let N=({products:e,phoneNumber:t,cartProducts:a,isPagBankAuthorized:s,onAddToCart:o})=>{let l=e=>{let[t,a]=e.toFixed(2).split("."),r=t.replace(/\B(?=(\d{3})+(?!\d))/g,".");return`R$ ${r},${a}`},[i,c]=(0,n.useState)(1),[p]=(0,n.useState)(6);e||(e=[]);let d=Math.ceil((e=[...e].sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime())).length/p),m=(i-1)*p,u=e.slice(m,m+p),h=u.length{let n=`Ol\xe1! Tenho interesse no produto ${e.name} + ${"number"==typeof e.price&&e.price>=1?l(e.price):"pre\xe7o a combinar"}. Gostaria de mais informa\xe7\xf5es.`,i=t&&`https://wa.me/55${t.replace(" ","").replace("-","")}?text=${encodeURIComponent(n)}`;return(0,r.jsxs)("div",{className:"flex flex-col justify-between items-center h-auto min-h-[260px] w-full max-w-[180px] text-center max-[630px]:min-h-0 max-[630px]:justify-start max-[630px]:flex-row max-[630px]:text-left max-[630px]:items-start max-[630px]:max-w-none max-[630px]:gap-[10px]",children:[(0,r.jsx)(x(),{src:e.medias?.[0]?.url?e.medias[0].url.replace("http://","https://"):"/productImageDefault.png",alt:"Produto",width:140,height:140,className:"w-full object-cover aspect-square rounded-[5px] border border-[#cccccc] max-[630px]:w-[140px] max-[630px]:h-[140px]"}),(0,r.jsxs)("div",{className:"flex flex-col py-2 text-center w-full h-full max-[630px]:h-[140px] max-[630px]:min-h-[140px] max-[630px]:justify-between",children:[(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("p",{className:"font-normal text-[16px] leading-6 text-left m-0 p-0 line-clamp-2 min-[630px]:h-[48px] min-[630px]:leading-[24px] overflow-hidden text-ellipsis",children:e.name}),(0,r.jsx)("p",{className:"text-[16px] leading-6 text-left m-0 mb-2 font-bold",children:"number"==typeof e.price&&e.price>=1?l(e.price):"Pre\xe7o a combinar"})]}),(0,r.jsx)("div",{className:"mt-auto",children:"number"==typeof e.price&&s&&e.price>=1?(0,r.jsx)("button",{onClick:t=>{t.stopPropagation(),o(e)},disabled:a.some(t=>t.id===e.id),className:`w-full text-white text-[14px] font-normal py-2 rounded-[4px] transition ${a.some(t=>t.id===e.id)?"bg-gray-400 cursor-not-allowed":"bg-[#202020] hover:opacity-90"} `,children:a.some(t=>t.id===e.id)?"No carrinho":"Comprar"}):(0,r.jsx)("button",{onClick:()=>t&&window.open(i,"_blank"),className:"w-full text-white text-[14px] bg-[#202020] hover:opacity-90 font-normal py-2 rounded-[4px] transition",children:"Combinar no WhatsApp"})})]})]},e.id)})}),e.length>=4&&(0,r.jsxs)("div",{className:"mt-4 flex justify-center items-center gap-3 font-medium text-[16px] py-3 border-t border-b border-[#cccc]",children:[(0,r.jsx)("button",{onClick:()=>{i>1&&c(i-1)},disabled:1===i,className:" px-2 py-1 text-[18px] cursor-pointer bg-none border-none text-[#0070AB] disabled:opacity-30 disabled:cursor-not-allowed ",children:"<"}),(0,r.jsxs)("span",{children:[i," de ",d]}),(0,r.jsx)("button",{onClick:()=>{i"})]})]})};var k=a(4916),_=a(5417),C=!0;function $({data:e,notFound:t}){let a=(0,p.useRouter)(),[l,c]=(0,n.useState)(!1),[d,m]=(0,n.useState)([]),u=(0,_.R)(e),h=(0,_.m)(e);(0,n.useEffect)(()=>{if("true"===a.query.success){c(!0);let e=a.asPath.split("?")[0];a.replace(e,void 0,{shallow:!0})}},[a,a.query.success]);let f=e=>{let t=e.target,a=document.querySelector(".up-floating"),r=document.querySelector("footer");if(!r||!a)return;let n=r.getBoundingClientRect().top+window.scrollY,s=t.scrollTop+window.innerHeight;s>=n+40&&window.innerWidth>768&&a?h?a.style.bottom="40px":a.style.bottom="0":s>=n+73&&window.innerWidth<=768&&a?a.style.bottom="73px":a&&(a.style.bottom="0px")};if((0,n.useEffect)(()=>{let e=document.querySelector("#__next div"),t=document.querySelector(".banner-lgpd-consent-container");t&&(t.style.bottom="180px");let a=document.querySelector(".up-floating");if(u){a&&(a.style.visibility="hidden",t&&(t.style.bottom="50px"));return}function r(){e&&(e.scrollHeight>e.clientHeight&&0===e.scrollTop?e.addEventListener("scroll",f):a&&(a.style.bottom=window.innerWidth>768?"40px":"73px"))}if(r(),a){let e=new MutationObserver(e=>{for(let t of e)"attributes"===t.type&&"class"===t.attributeName&&a.classList.contains("up-floating")&&r()});return e.observe(a,{attributes:!0}),()=>e.disconnect()}return()=>{e&&e.removeEventListener("scroll",f)}},[e]),t||null==e)return(0,r.jsx)("div",{className:"h-full",children:"Alguma coisa deu errado. Por favor tente outra vez"});let j=e.logoUrl||e.backgroundUrl||"";return(0,r.jsxs)("main",{className:`${u?"min-h-[calc(100%-39px)]":""}`,children:[(0,r.jsxs)(i(),{children:[(0,r.jsx)("meta",{charSet:"utf-8"}),(0,r.jsx)("title",{children:`Conecte ${e.title?`| ${e.title}`:""}`}),(0,r.jsx)("meta",{name:"description",content:e.description}),(0,r.jsx)("meta",{property:"og:title",content:e.title||"Conecte"}),(0,r.jsx)("meta",{property:"og:description",content:e.description||""}),(0,r.jsx)("meta",{property:"og:url",content:e.path}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{itemProp:"image",content:j}),(0,r.jsx)("meta",{property:"og:image",content:j}),(0,r.jsx)("meta",{property:"og:image:url",content:j}),(0,r.jsx)("meta",{property:"og:image:secure_url",content:j}),(0,r.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,r.jsx)("meta",{property:"og:image:height",content:"630"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:title",content:e.title||"Conecte"}),(0,r.jsx)("meta",{name:"twitter:description",content:e.description||""}),(0,r.jsx)("meta",{name:"twitter:image",content:j}),(0,r.jsx)("meta",{name:"twitter:image:src",content:j}),(0,r.jsx)("link",{rel:"icon",href:"/favico.ico"})]}),(0,r.jsxs)("div",{style:{fontFamily:e.fontType},className:"min-h-full w-full flex flex-wrap flex-col items-center relative m-auto p-0 max-[960px]:p-0 min-[960px]:p-12",children:[(0,r.jsx)("div",{className:"w-screen h-full fixed top-0 -z-20",style:{backgroundColor:e.color||"transparent"}}),(0,r.jsx)("div",{style:{backgroundImage:e.backgroundUrl?"url("+(0,k.V)(e.backgroundUrl)+")":""},className:"h-full w-screen bg-cover bg-top fixed z-[-1] top-0 left-0 hidden min-[960px]:block"}),e.merchant?.paymentSetups[0].isAuthorized&&(0,r.jsx)(w,{conecte:e,products:d,onRemove:e=>m(t=>t.filter(t=>t.id!==e))}),(0,r.jsx)("div",{className:"block min-[960px]:hidden",children:e.backgroundUrl&&""!=e.backgroundUrl&&(0,r.jsx)("img",{src:(0,k.Z)(e.backgroundUrl),alt:"background",className:"w-screen"})}),(e.logoUrl||e.title||e.description||e.contact.phoneNumber||e.contact.email||e.contact.facebook||e.contact.instagram||e.contact.linkedin||e.contact.tiktok||e.contact.youtube)&&(0,r.jsxs)("article",{className:`shadow-md h-fit w-full max-w-[600px] bg-white rounded-[4px] p-10 relative z-[2] flex flex-col items-center mt-[-230px] mx-[10px] mb-0 last:mb-0 min-[960px]:mt-0 min-[960px]:mx-0 max-[960px]:static max-[960px]:mt-[-25vw] max-[960px]:mx-[10px] max-[960px]:mb-0 max-[960px]:justify-center max-[630px]:p-[32px_24px] max-[630px]:max-w-[344px] max-[630px]:min-h-[280px] ${!e.backgroundUrl||""==e.backgroundUrl?"mt-44-important":""}`,children:[e.logoUrl&&(0,r.jsx)("img",{src:e.logoUrl,alt:"Logo",className:"max-w-[260px] max-h-[120px] mx-auto mb-8"}),e.title&&(0,r.jsx)("h2",{style:{fontFamily:e.fontType},className:" text-[#202020] text-[36px] font-bold leading-[42px] text-center break-words whitespace-normal mb-6 max-[630px]:text-[26px]",children:e.title}),e.description&&(0,r.jsx)("p",{className:"text-[#202020] flex-grow text-[18px] leading-[22px] self-start break-words whitespace-pre-line mb-8 max-[630px]:flex-grow-[0.5] max-[630px]:text-[16px] max-[630px]:leading-[20px]",children:e.description}),(e.contact.email||e.contact.phoneNumber)&&(0,r.jsxs)("div",{className:e.contact.whatsapp?" w-[430px] flex flex-row justify-center gap-[48px] mb-6 max-[630px]:w-[300px] max-[630px]:flex-col max-[630px]:gap-0 max-[630px]:items-center":"flex flex-col items-center justify-between w-full h-fit min-h-[50px] mx-4 mb-6",children:[e.contact.phoneNumber&&(e.contact.whatsapp?(0,r.jsxs)("a",{href:`https://wa.me/55${e.contact.phoneNumber.replace(" ","").replace("-","")}`,className:"group w-[192px] h-12 outline-none rounded-[3px] bg-cover mb-6 flex justify-center items-center border border-[#DCDCDC] text-[#0B7C2F] gap-[5px] hover:bg-[#48ac5b] hover:text-white max-[630px]:mb-4 transition-colors duration-300 ",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(x(),{src:"/whatsapp.svg",alt:"whatsapp logo",width:24,height:24,className:"transition duration-300 group-hover:invert group-hover:brightness-0"}),(0,r.jsx)("p",{className:"text-lg font-roboto",children:"WhatsApp"})]}):(0,r.jsxs)("div",{className:"w-full flex flex-row justify-center mb-4 items-center",children:[(0,r.jsx)(s.A,{size:24,color:"#202020",className:"mr-2"}),(0,r.jsx)("p",{className:"text-[#202020] font-roboto text-[27px] ",children:e.contact.phoneNumber})]})),e.contact.email&&(0,r.jsxs)("a",{href:`mailto:${e.contact.email}`,className:"group btn-email w-[192px] h-12 outline-none rounded-[3px] bg-cover mb-6 flex justify-center items-center border border-[#DCDCDC] text-[#0070AB] gap-[5px] max-[630px]:mb-4 hover:bg-[#0070AB] hover:text-white transition-colors duration-300",children:[(0,r.jsx)(o.A,{size:20,className:"text-[#0070AB] transition duration-300 group-hover:brightness-0 group-hover:invert"}),(0,r.jsx)("p",{className:"text-lg font-roboto",children:"Email"})]})]}),(e.contact.facebook||e.contact.instagram||e.contact.linkedin||e.contact.tiktok||e.contact.youtube)&&(0,r.jsxs)("div",{className:"flex flex-row justify-center w-full max-w-[300px] gap-6",children:[e.contact.facebook&&(0,r.jsx)("a",{href:S(e.contact.facebook),target:"_blank",rel:"noopener noreferrer",className:" w-[42px] h-[42px] opacity-75 hover:opacity-100","aria-label":"Facebook",children:(0,r.jsx)(x(),{src:"/facebook.svg",alt:"facebook logo",width:42,height:42})}),e.contact.instagram&&(0,r.jsx)("a",{href:`${S(e.contact.instagram)}`,target:"_blank",rel:"noopener noreferrer",className:"w-[42px] h-[42px] opacity-75 hover:opacity-100","aria-label":"Instagram",children:(0,r.jsx)(x(),{src:"/instagram.svg",alt:"instagram logo",width:42,height:42})}),e.contact.tiktok&&(0,r.jsx)("a",{href:`${S(e.contact.tiktok)}`,target:"_blank",rel:"noopener noreferrer",className:"w-[42px] h-[42px] opacity-75 hover:opacity-100","aria-label":"Tiktok",children:(0,r.jsx)(x(),{src:"/tiktok.svg",alt:"tiktok logo",width:42,height:42})}),e.contact.youtube&&(0,r.jsx)("a",{href:`${S(e.contact.youtube)}`,target:"_blank",rel:"noopener noreferrer",className:"w-[42px] h-[42px] opacity-75 hover:opacity-100","aria-label":"Youtube",children:(0,r.jsx)(x(),{src:"/youtube.svg",alt:"youtube logo",width:42,height:42})}),e.contact.linkedin&&(0,r.jsx)("a",{href:`${S(e.contact.linkedin)}`,target:"_blank",rel:"noopener noreferrer",className:"w-[42px] h-[42px] opacity-75 hover:opacity-100","aria-label":"Linkedin",children:(0,r.jsx)(x(),{src:"/linkedin.svg",alt:"linkedin logo",width:42,height:42})})]})]}),JSON.parse(e.contact.multiLinks)&&JSON.parse(e.contact.multiLinks).length>0&&(0,r.jsx)(v,{multiLinks:e.contact.multiLinks,isCatalag:e.productList&&e.productList?.length>0}),e.productList&&e.productList?.length>0&&(0,r.jsx)(N,{products:e.productList,phoneNumber:e.contact.phoneNumber,cartProducts:d,isPagBankAuthorized:e.merchant?.paymentSetups[0].isAuthorized,onAddToCart:e=>{d.some(t=>t.id===e.id)||m(t=>[...t,e])}}),e.attendance&&Object.keys(e.attendance).length>0&&e?.account_payment_type==="PRO"&&(0,r.jsx)(b,{attendance:e.attendance}),e.address&&Object.keys(e.address).length>0&&(0,r.jsx)(g,{address:e.address,isPro:e?.account_payment_type==="PRO"}),(0,r.jsxs)(y,{isOpen:l,onClose:()=>c(!1),children:[(0,r.jsx)(x(),{src:"/Success.png",alt:"success",width:40,height:40,className:"my-2"}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("h2",{className:"text-xl font-semibold ",children:"Sucesso! Sua compra foi conclu\xedda."}),(0,r.jsx)("p",{className:"",children:"Recebemos seu pedido e j\xe1 estamos processando. Em breve voc\xea receber\xe1 os detalhes no seu e-mail ou Whatsapp."}),(0,r.jsx)("button",{onClick:()=>c(!1),className:"max-w-[380px] py-2 px-4 mt-[24px] transition-colors duration-300 ease-in-out h-[48px] text-[20px] max-[610px]:text-[16px] bg-[#5D69D3] text-white rounded-[4px] hover:bg-[#858ccf]",children:"Voltar para a p\xe1gina inicial"})]})]})]})]})}let S=e=>-1===e.indexOf("http")?`https://${e}`:e}},e=>{e.O(0,[867,636,593,792],()=>e(e.s=4064)),_N_E=e.O()}]);